<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="lib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查找商品</title>
</head>
<body>
	<table>
		<tr>
		<thead>
			<tr>
				<th>商品编号</th>
				<th>所属商家</th>
				<th>商品名称</th>
				<th>商品价格</th>
				<th>上架日期</th>
				<th>类别</th>
				<th>销量</th>
				<th>搜索量</th>
				<th>描述</th>
				<th>库存</th>
				<th>图片</th>
			</tr>
		</thead>
		<tbody>
			<!-- 取出域对象中的商品信息（来自GoodsSearchServlet.java) -->

			<c:forEach items="${gList}" var="vo">
			<tr>
				<td>${vo.gid}</td>
				<td>${vo.bid}</td>
				<td>${vo.gname}</td>
				<td>${vo.gprice}</td>
				<td>${vo.uptime}</td>
				<td>${vo.gtype}</td>
				<td>${vo.sales}</td>
				<td>${vo.searchnum}</td>
				<td>${vo.gdetail}</td>
				<td>${vo.gstore}</td>
				<td>
					<div align="center">
					<img src="/upload/${vo.picture}" style="width:150px;height:100px;"/>
					</div>
				</td>

			</tr>
			</c:forEach>


		</tbody>
	</table>
</body>
</html>